home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / GXErrors.a < prev    next >
Text File  |  1996-05-01  |  27KB  |  788 lines

  1. ;
  2. ;    File:        GXErrors.a
  3. ;
  4. ;    Contains:    QuickDraw GX error constants and debugging routines
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__GXERRORS__') = 'UNDEFINED' THEN
  19. __GXERRORS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  28.     include 'GXTypes.a'
  29.     ENDIF
  30.  
  31. gxFirstSystemError                EQU        -27999                ; 0xffff92a1 
  32. gxFirstFatalError                EQU        -27999
  33. gxLastFatalError                EQU        -27951
  34. gxFirstNonfatalError            EQU        -27950
  35. gxFirstFontScalerError            EQU        -27900
  36. gxLastFontScalerError            EQU        -27851
  37. gxFirstParameterError            EQU        -27850
  38. gxFirstImplementationLimitError    EQU        -27800
  39. gxFirstSystemDebuggingError        EQU        -27700
  40. gxLastSystemError                EQU        -27000                ; 0xffff9688 
  41. gxFirstLibraryError                EQU        1048576                ; 0x00100000 
  42. gxLastLibraryError                EQU        2097151                ; 0x001fffff 
  43. gxFirstAppError                    EQU        2097152                ; 0x00200000 
  44. gxLastAppError                    EQU        4194303                ; 0x003fffff 
  45. gxFirstSystemWarning            EQU        -26999                ; 0xffff9689 
  46. gxFirstResultOutOfRangeWarning    EQU        -26950
  47. gxFirstParameterOutOfRangeWarning EQU    -26900
  48. gxFirstFontScalerWarning        EQU        -26850
  49. gxFirstSystemDebuggingWarning    EQU        -26700
  50. gxLastSystemWarning                EQU        -26000                ; 0xffff9a70 
  51. gxFirstLibraryWarning            EQU        4194304                ; 0x00400000 
  52. gxLastLibraryWarning            EQU        5242879                ; 0x004fffff 
  53. gxFirstAppWarning                EQU        5242880                ; 0x00500000 
  54. gxLastAppWarning                EQU        7340031                ; 0x006fffff 
  55. gxFirstSystemNotice                EQU        -25999                ; 0xffff9a71 
  56. gxLastSystemNotice                EQU        -25500                ; 0xffff9c64 
  57. gxFirstLibraryNotice            EQU        7340032                ; 0x00700000 
  58. gxLastLibraryNotice                EQU        7602175                ; 0x0073ffff 
  59. gxFirstAppNotice                EQU        7602176                ; 0x00740000 
  60. gxLastAppNotice                    EQU        8388607                ; 0x007fffff 
  61.  
  62.                                                             ; truly fatal errors 
  63. out_of_memory                    EQU        -27999
  64. internal_fatal_error            EQU        -27998
  65. no_outline_font_found            EQU        -27997
  66. not_enough_memory_for_graphics_client_heap EQU -27996
  67. could_not_create_backing_store    EQU        -27995                ; internal errors 
  68. internal_error                    EQU        -27950
  69. internal_font_error                EQU        -27949
  70. internal_layout_error            EQU        -27948                ; recoverable errors 
  71. could_not_dispose_backing_store    EQU        -27946
  72. unflattening_interrupted_by_client EQU    -27945                ; font manager errors 
  73. font_cannot_be_changed            EQU        -27944
  74. illegal_font_parameter            EQU        -27943                ; gxFont scaler errors 
  75. null_font_scaler_context        EQU        -27900
  76. null_font_scaler_input            EQU        -27899
  77. invalid_font_scaler_context        EQU        -27898
  78. invalid_font_scaler_input        EQU        -27897
  79. invalid_font_scaler_font_data    EQU        -27896
  80. font_scaler_newblock_failed        EQU        -27895
  81. font_scaler_getfonttable_failed    EQU        -27894
  82. font_scaler_bitmap_allocation_failed EQU -27893
  83. font_scaler_outline_allocation_failed EQU -27892
  84. required_font_scaler_table_missing EQU    -27891
  85. unsupported_font_scaler_outline_format EQU -27890
  86. unsupported_font_scaler_stream_format EQU -27889
  87. unsupported_font_scaler_font_format EQU    -27888
  88. font_scaler_hinting_error        EQU        -27887
  89. font_scaler_rasterizer_error    EQU        -27886
  90. font_scaler_internal_error        EQU        -27885
  91. font_scaler_invalid_matrix        EQU        -27884
  92. font_scaler_fixed_overflow        EQU        -27883
  93. font_scaler_api_version_mismatch EQU    -27882
  94. font_scaler_streaming_aborted    EQU        -27881
  95. unknown_font_scaler_error        EQU        -27880                ; bad parameters 
  96. parameter_is_nil                EQU        -27850
  97. shape_is_nil                    EQU        -27849
  98. style_is_nil                    EQU        -27848
  99. transform_is_nil                EQU        -27847
  100. ink_is_nil                        EQU        -27846
  101. transferMode_is_nil                EQU        -27845
  102. color_is_nil                    EQU        -27844
  103. colorProfile_is_nil                EQU        -27843
  104. colorSet_is_nil                    EQU        -27842
  105. spoolProcedure_is_nil            EQU        -27841
  106. tag_is_nil                        EQU        -27840
  107. type_is_nil                        EQU        -27839
  108. mapping_is_nil                    EQU        -27838
  109. invalid_viewDevice_reference    EQU        -27837
  110. invalid_viewGroup_reference        EQU        -27836
  111. invalid_viewPort_reference        EQU        -27835                ; implementation limits, these should be right before the debugging errors 
  112. number_of_contours_exceeds_implementation_limit EQU -27800
  113. number_of_points_exceeds_implementation_limit EQU -27799
  114. size_of_polygon_exceeds_implementation_limit EQU -27798
  115. size_of_path_exceeds_implementation_limit EQU -27797
  116. size_of_text_exceeds_implementation_limit EQU -27796
  117. size_of_bitmap_exceeds_implementation_limit EQU -27795
  118. number_of_colors_exceeds_implementation_limit EQU -27794
  119. procedure_not_reentrant            EQU        -27793
  120.  
  121.                                                             ; internal debugging errors 
  122. functionality_unimplemented        EQU        -27700
  123. clip_to_frame_shape_unimplemented EQU    -27699                ; font parameter debugging errors 
  124. illegal_font_storage_type        EQU        -27698
  125. illegal_font_storage_reference    EQU        -27697
  126. illegal_font_attributes            EQU        -27696                ; parameter debugging errors 
  127. parameter_out_of_range            EQU        -27695
  128. inconsistent_parameters            EQU        -27694
  129. index_is_less_than_zero            EQU        -27693
  130. index_is_less_than_one            EQU        -27692
  131. count_is_less_than_zero            EQU        -27691
  132. count_is_less_than_one            EQU        -27690
  133. contour_is_less_than_zero        EQU        -27689
  134. length_is_less_than_zero        EQU        -27688
  135. invalid_client_reference        EQU        -27687
  136. invalid_graphics_heap_start_pointer EQU    -27686
  137. invalid_nongraphic_globals_pointer EQU    -27685
  138. colorSpace_out_of_range            EQU        -27684
  139. pattern_lattice_out_of_range    EQU        -27683
  140. frequency_parameter_out_of_range EQU    -27682
  141. tinting_parameter_out_of_range    EQU        -27681
  142. method_parameter_out_of_range    EQU        -27680
  143. space_may_not_be_indexed        EQU        -27679
  144. glyph_index_too_small            EQU        -27678
  145. no_glyphs_added_to_font            EQU        -27677
  146. glyph_not_added_to_font            EQU        -27676
  147. point_does_not_intersect_bitmap    EQU        -27675
  148. required_font_table_not_present    EQU        -27674
  149. unknown_font_table_format        EQU        -27673                ; the styles encoding is not present in the font 
  150. shapeFill_not_allowed            EQU        -27672
  151. inverseFill_face_must_set_clipLayer_flag EQU -27671
  152. invalid_transferMode_colorSpace    EQU        -27670
  153. colorProfile_must_be_nil        EQU        -27669
  154. bitmap_pixel_size_must_be_1        EQU        -27668
  155. empty_shape_not_allowed            EQU        -27667
  156. ignorePlatformShape_not_allowed    EQU        -27666
  157. nil_style_in_glyph_not_allowed    EQU        -27665
  158. complex_glyph_style_not_allowed    EQU        -27664
  159. invalid_mapping                    EQU        -27663
  160. cannot_set_item_shapes_to_nil    EQU        -27662
  161. cannot_use_original_item_shapes_when_growing_picture EQU -27661
  162. cannot_add_unspecified_new_glyphs EQU    -27660
  163. cannot_dispose_locked_tag        EQU        -27659
  164. cannot_dispose_locked_shape        EQU        -27658                ; restricted access 
  165. shape_access_not_allowed        EQU        -27657
  166. colorSet_access_restricted        EQU        -27656
  167. colorProfile_access_restricted    EQU        -27655
  168. tag_access_restricted            EQU        -27654
  169. viewDevice_access_restricted    EQU        -27653
  170. graphic_type_does_not_have_a_structure EQU -27652
  171. style_run_array_does_not_match_number_of_characters EQU -27651
  172. rectangles_cannot_be_inserted_into EQU    -27650
  173. unknown_graphics_heap            EQU        -27649
  174. graphics_routine_selector_is_obsolete EQU -27648
  175. cannot_set_graphics_client_memory_without_setting_size EQU -27647
  176. graphics_client_memory_too_small EQU    -27646
  177. graphics_client_memory_is_already_allocated EQU -27645
  178. viewPort_is_a_window            EQU        -27644                ; wrong type/bad reference 
  179. illegal_type_for_shape            EQU        -27643
  180. shape_does_not_contain_a_bitmap    EQU        -27642
  181. shape_does_not_contain_text        EQU        -27641
  182. picture_expected                EQU        -27640
  183. bitmap_is_not_resizable            EQU        -27639
  184. shape_may_not_be_a_bitmap        EQU        -27638
  185. shape_may_not_be_a_picture        EQU        -27637
  186. graphic_type_does_not_contain_points EQU -27636
  187. graphic_type_does_not_have_multiple_contours EQU -27635
  188. graphic_type_cannot_be_mapped    EQU        -27634
  189. graphic_type_cannot_be_moved    EQU        -27633
  190. graphic_type_cannot_be_scaled    EQU        -27632
  191. graphic_type_cannot_be_rotated    EQU        -27631
  192. graphic_type_cannot_be_skewed    EQU        -27630
  193. graphic_type_cannot_be_reset    EQU        -27629
  194. graphic_type_cannot_be_dashed    EQU        -27628
  195. graphic_type_cannot_be_reduced    EQU        -27627
  196. graphic_type_cannot_be_inset    EQU        -27626
  197. shape_cannot_be_inverted        EQU        -27625
  198. shape_does_not_have_area        EQU        -27624
  199. shape_does_not_have_length        EQU        -27623
  200. first_glyph_advance_must_be_absolute EQU -27622
  201. picture_cannot_contain_itself    EQU        -27621
  202. viewPort_cannot_contain_itself    EQU        -27620
  203. cannot_set_unique_items_attribute_when_picture_contains_items EQU -27619
  204. layer_style_cannot_contain_a_face EQU    -27618
  205. layer_glyph_shape_cannot_contain_nil_styles EQU -27617        ; validation errors 
  206. object_wrong_type                EQU        -27616
  207. shape_wrong_type                EQU        -27615
  208. style_wrong_type                EQU        -27614
  209. ink_wrong_type                    EQU        -27613
  210. transform_wrong_type            EQU        -27612
  211. device_wrong_type                EQU        -27611
  212. port_wrong_type                    EQU        -27610                ; validation cache errors 
  213. shape_cache_wrong_type            EQU        -27609
  214. style_cache_wrong_type            EQU        -27608
  215. ink_cache_wrong_type            EQU        -27607
  216. transform_cache_wrong_type        EQU        -27606
  217. port_cache_wrong_type            EQU        -27605
  218. shape_cache_parent_mismatch        EQU        -27604
  219. style_cache_parent_mismatch        EQU        -27603
  220. ink_cache_parent_mismatch        EQU        -27602
  221. transform_cache_parent_mismatch    EQU        -27601
  222. port_cache_parent_mismatch        EQU        -27600
  223. invalid_shape_cache_port        EQU        -27599
  224. invalid_shape_cache_device        EQU        -27598
  225. invalid_ink_cache_port            EQU        -27597
  226. invalid_ink_cache_device        EQU        -27596
  227. invalid_style_cache_port        EQU        -27595
  228. invalid_style_cache_device        EQU        -27594
  229. invalid_transform_cache_port    EQU        -27593
  230. invalid_transform_cache_device    EQU        -27592
  231. recursive_caches                EQU        -27591                ; validation shape cache errors 
  232. invalid_fillShape_ownerCount    EQU        -27590
  233. recursive_fillShapes            EQU        -27589                ; validation memory block errors 
  234. indirect_memory_block_too_small    EQU        -27588
  235. indirect_memory_block_too_large    EQU        -27587
  236. unexpected_nil_pointer            EQU        -27586
  237. bad_address                        EQU        -27585                ; validation object errors 
  238. no_owners                        EQU        -27584
  239. invalid_pointer                    EQU        -27583
  240. invalid_seed                    EQU        -27582
  241. invalid_frame_seed                EQU        -27581
  242. invalid_text_seed                EQU        -27580
  243. invalid_draw_seed                EQU        -27579
  244. bad_private_flags                EQU        -27578                ; validation path and polygon errors 
  245. invalid_vector_count            EQU        -27577
  246. invalid_contour_count            EQU        -27576                ; validation bitmap errors 
  247. bitmap_ptr_too_small            EQU        -27575
  248. bitmap_ptr_not_aligned            EQU        -27574
  249. bitmap_rowBytes_negative        EQU        -27573
  250. bitmap_width_negative            EQU        -27572
  251. bitmap_height_negative            EQU        -27571
  252. invalid_pixelSize                EQU        -27570
  253. bitmap_rowBytes_too_small        EQU        -27569
  254. bitmap_rowBytes_not_aligned        EQU        -27568
  255. bitmap_rowBytes_must_be_specified_for_user_image_buffer EQU -27567 ; validation bitmap image errors 
  256. invalid_bitImage_fileOffset        EQU        -27566
  257. invalid_bitImage_owners            EQU        -27565
  258. invalid_bitImage_rowBytes        EQU        -27564
  259. invalid_bitImage_internal_flag    EQU        -27563                ; validation text errors 
  260. text_bounds_cache_wrong_size    EQU        -27562
  261. text_metrics_cache_wrong_size    EQU        -27561
  262. text_index_cache_wrong_size        EQU        -27560                ; validation glyph errors 
  263. glyph_run_count_negative        EQU        -27559
  264. glyph_run_count_zero            EQU        -27558
  265. glyph_run_counts_do_not_sum_to_character_count EQU -27557
  266. glyph_first_advance_bit_set_not_allowed EQU -27556
  267. glyph_tangent_vectors_both_zero    EQU        -27555                ; validation layout errors 
  268. layout_run_length_negative        EQU        -27554
  269. layout_run_length_zero            EQU        -27553
  270. layout_run_level_negative        EQU        -27552
  271. layout_run_lengths_do_not_sum_to_text_length EQU -27551        ; validation picture errors 
  272. bad_shape_in_picture            EQU        -27550
  273. bad_style_in_picture            EQU        -27549
  274. bad_ink_in_picture                EQU        -27548
  275. bad_transform_in_picture        EQU        -27547
  276. bad_shape_cache_in_picture        EQU        -27546
  277. bad_seed_in_picture                EQU        -27545
  278. invalid_picture_count            EQU        -27544                ; validation text face errors 
  279. bad_textLayer_count                EQU        -27543
  280. bad_fillType_in_textFace        EQU        -27542
  281. bad_style_in_textFace            EQU        -27541
  282. bad_transform_in_textFace        EQU        -27540                ; validation transform errors 
  283. invalid_matrix_flag                EQU        -27539
  284. transform_clip_missing            EQU        -27538                ; validation font cache errors 
  285. metrics_wrong_type                EQU        -27537
  286. metrics_point_size_probably_bad    EQU        -27536
  287. scalar_block_wrong_type            EQU        -27535
  288. scalar_block_parent_mismatch    EQU        -27534
  289. scalar_block_too_small            EQU        -27533
  290. scalar_block_too_large            EQU        -27532
  291. invalid_metrics_range            EQU        -27531
  292. invalid_metrics_flags            EQU        -27530
  293. metrics_maxWidth_probably_bad    EQU        -27529
  294. font_wrong_type                    EQU        -27528
  295. font_wrong_size                    EQU        -27527
  296. invalid_font_platform            EQU        -27526
  297. invalid_lookup_range            EQU        -27525
  298. invalid_lookup_platform            EQU        -27524
  299. font_not_in_font_list            EQU        -27523
  300. metrics_not_in_metrics_list        EQU        -27522                ; validation view device errors 
  301. bad_device_private_flags        EQU        -27521
  302. bad_device_attributes            EQU        -27520
  303. invalid_device_number            EQU        -27519
  304. invalid_device_viewGroup        EQU        -27518
  305. invalid_device_bounds            EQU        -27517
  306. invalid_bitmap_in_device        EQU        -27516                ; validation color set errors 
  307. colorSet_wrong_type                EQU        -27515
  308. invalid_colorSet_viewDevice_owners EQU    -27514
  309. invalid_colorSet_colorSpace        EQU        -27513
  310. invalid_colorSet_count            EQU        -27512                ; validation color profile errors 
  311. colorProfile_wrong_type            EQU        -27511
  312. invalid_colorProfile_flags        EQU        -27510
  313. invalid_colorProfile_response_count EQU    -27509                ; validation internal backing store errors 
  314. backing_free_parent_mismatch    EQU        -27508
  315. backing_store_parent_mismatch    EQU        -27507
  316.  
  317.                                                             ; warnings about warnings 
  318. warning_stack_underflow            EQU        -26999
  319. warning_stack_overflow            EQU        -26998
  320. notice_stack_underflow            EQU        -26997
  321. notice_stack_overflow            EQU        -26996
  322. about_to_grow_heap                EQU        -26995
  323. about_to_unload_objects            EQU        -26994                ; result went out of range 
  324. map_shape_out_of_range            EQU        -26950
  325. move_shape_out_of_range            EQU        -26949
  326. scale_shape_out_of_range        EQU        -26948
  327. rotate_shape_out_of_range        EQU        -26947
  328. skew_shape_out_of_range            EQU        -26946
  329. map_transform_out_of_range        EQU        -26945
  330. move_transform_out_of_range        EQU        -26944
  331. scale_transform_out_of_range    EQU        -26943
  332. rotate_transform_out_of_range    EQU        -26942
  333. skew_transform_out_of_range        EQU        -26941
  334. map_points_out_of_range            EQU        -26940                ; gave a parameter out of range 
  335. contour_out_of_range            EQU        -26900
  336. index_out_of_range_in_contour    EQU        -26899
  337. picture_index_out_of_range        EQU        -26898
  338. color_index_requested_not_found    EQU        -26897
  339. colorSet_index_out_of_range        EQU        -26896
  340. index_out_of_range                EQU        -26895
  341. count_out_of_range                EQU        -26894
  342. length_out_of_range                EQU        -26893
  343. font_table_index_out_of_range    EQU        -26892
  344. font_glyph_index_out_of_range    EQU        -26891
  345. point_out_of_range                EQU        -26890
  346. profile_response_out_of_range    EQU        -26889                ; gxFont scaler warnings 
  347. font_scaler_no_output            EQU        -26850
  348. font_scaler_fake_metrics        EQU        -26849
  349. font_scaler_fake_linespacing    EQU        -26848
  350. font_scaler_glyph_substitution    EQU        -26847
  351. font_scaler_no_kerning_applied    EQU        -26846                ; might not be what you expected 
  352. character_substitution_took_place EQU    -26845
  353. unable_to_get_bounds_on_multiple_devices EQU -26844
  354. font_language_not_found            EQU        -26843
  355. font_not_found_during_unflattening EQU    -26842                ;storage 
  356. unrecognized_stream_version        EQU        -26841
  357. bad_data_in_stream                EQU        -26840
  358.  
  359.                                                             ; nonsense data 
  360. new_shape_contains_invalid_data    EQU        -26700
  361. new_tag_contains_invalid_data    EQU        -26699
  362. extra_data_passed_was_ignored    EQU        -26698
  363. font_table_not_found            EQU        -26697
  364. font_name_not_found                EQU        -26696                ; doesn't make sense to do 
  365. unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve EQU -26695
  366. unable_to_draw_open_contour_that_starts_or_ends_off_the_curve EQU -26694
  367. cannot_dispose_default_shape    EQU        -26693
  368. cannot_dispose_default_style    EQU        -26692
  369. cannot_dispose_default_ink        EQU        -26691
  370. cannot_dispose_default_transform EQU    -26690
  371. cannot_dispose_default_colorProfile EQU    -26689
  372. cannot_dispose_default_colorSet    EQU        -26688
  373. shape_direct_attribute_not_set    EQU        -26687                ; couldn't find what you were looking for 
  374. point_does_not_intersect_port    EQU        -26686
  375. cannot_dispose_non_font            EQU        -26685
  376. face_override_style_font_must_match_style EQU -26684
  377. union_of_area_and_length_returns_area_only EQU -26683
  378. insufficient_coordinate_space_for_new_device EQU -26682        ; other 
  379. shape_passed_has_no_bounds        EQU        -26681
  380. tags_of_type_flst_removed        EQU        -26680
  381. translator_not_installed_on_this_grafport EQU -26679
  382.  
  383. parameters_have_no_effect        EQU        -25999
  384. attributes_already_set            EQU        -25998
  385. caps_already_set                EQU        -25997
  386. clip_already_set                EQU        -25996
  387. color_already_set                EQU        -25995
  388. curve_error_already_set            EQU        -25994
  389. dash_already_set                EQU        -25993
  390. default_colorProfile_already_set EQU    -25992
  391. default_ink_already_set            EQU        -25991
  392. default_transform_already_set    EQU        -25990
  393. default_shape_already_set        EQU        -25989
  394. default_style_already_set        EQU        -25988
  395. dither_already_set                EQU        -25987
  396. encoding_already_set            EQU        -25986
  397. face_already_set                EQU        -25985
  398. fill_already_set                EQU        -25984
  399. font_already_set                EQU        -25983
  400. font_variations_already_set        EQU        -25982
  401. glyph_positions_are_already_set    EQU        -25981
  402. glyph_tangents_are_already_set    EQU        -25980
  403. halftone_already_set            EQU        -25979
  404. hit_test_already_set            EQU        -25978
  405. ink_already_set                    EQU        -25977
  406. join_already_set                EQU        -25976
  407. justification_already_set        EQU        -25975
  408. mapping_already_set                EQU        -25974
  409. pattern_already_set                EQU        -25973
  410. pen_already_set                    EQU        -25972
  411. style_already_set                EQU        -25971
  412. tag_already_set                    EQU        -25970
  413. text_attributes_already_set        EQU        -25969
  414. text_size_already_set            EQU        -25968
  415. transfer_already_set            EQU        -25967
  416. translator_already_installed_on_this_grafport EQU -25966
  417. transform_already_set            EQU        -25965
  418. type_already_set                EQU        -25964
  419. validation_level_already_set    EQU        -25963
  420. viewPorts_already_set            EQU        -25962
  421. viewPort_already_in_viewGroup    EQU        -25961
  422. viewDevice_already_in_viewGroup    EQU        -25960
  423. geometry_unaffected                EQU        -25959
  424. mapping_unaffected                EQU        -25958
  425. tags_in_shape_ignored            EQU        -25957
  426. shape_already_in_primitive_form    EQU        -25956
  427. shape_already_in_simple_form    EQU        -25955
  428. shape_already_broken            EQU        -25954
  429. shape_already_joined            EQU        -25953
  430. cache_already_cleared            EQU        -25952
  431. shape_not_disposed                EQU        -25951
  432. style_not_disposed                EQU        -25950
  433. ink_not_disposed                EQU        -25949
  434. transform_not_disposed            EQU        -25948
  435. colorSet_not_disposed            EQU        -25947
  436. colorProfile_not_disposed        EQU        -25946
  437. font_not_disposed                EQU        -25945
  438. glyph_tangents_have_no_effect    EQU        -25944
  439. glyph_positions_determined_by_advance EQU -25943
  440. transform_viewPorts_already_set    EQU        -25942
  441. directShape_attribute_set_as_side_effect EQU -25941
  442. lockShape_called_as_side_effect    EQU        -25940
  443. lockTag_called_as_side_effect    EQU        -25939
  444. shapes_unlocked_as_side_effect    EQU        -25938
  445. shape_not_locked                EQU        -25937
  446. tag_not_locked                    EQU        -25936
  447. profile_not_locked                EQU        -25936
  448. lockProfile_called_as_side_effect EQU    -25939
  449. disposed_dead_caches            EQU        -25935
  450. disposed_live_caches            EQU        -25934
  451. low_on_memory                    EQU        -25933
  452. very_low_on_memory                EQU        -25932
  453. transform_references_disposed_viewPort EQU -25931
  454. ; typedef long                             gxGraphicsError
  455.  
  456. ; typedef long                             gxGraphicsWarning
  457.  
  458. ; typedef long                             gxGraphicsNotice
  459.  
  460.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  461. ; typedef gxUserErrorProcPtr             gxUserErrorFunction
  462.  
  463. ; typedef gxUserWarningProcPtr             gxUserWarningFunction
  464.  
  465. ; typedef gxUserNoticeProcPtr             gxUserNoticeFunction
  466.  
  467.     ENDIF
  468.  
  469. common_colors_not_initialized    EQU        1048576
  470. no_open_picture                    EQU        1048577
  471. picture_already_open            EQU        1048578
  472. no_open_poly                    EQU        1048579
  473. poly_already_open                EQU        1048580
  474. no_open_region                    EQU        1048581
  475. region_already_open                EQU        1048582
  476. no_active_picture                EQU        1048583
  477.  
  478. no_picture_drawn                EQU        4194304
  479. polygons_have_different_size_contours EQU 4194305
  480. graphic_type_cannot_be_specifed_by_four_values EQU 4194306
  481. graphic_type_cannot_be_specifed_by_six_values EQU 4194307
  482. point_expected                    EQU        4194308
  483. line_or_rectangle_expected        EQU        4194309
  484. curve_expected                    EQU        4194310
  485. graphic_type_does_not_contain_control_bits EQU 4194311
  486. request_exceeds_available_data    EQU        4194312
  487. extra_data_unread                EQU        4194313
  488. no_variable_length_user_data_saved EQU    4194314
  489.  
  490. zero_length_string_passed        EQU        7340032
  491.  
  492.                                                             ; These levels tell how to validate routines.  Choose one. 
  493. gxNoValidation                    EQU        $00                    ; no validation 
  494. gxPublicValidation                EQU        $01                    ; check parameters to public routines 
  495. gxInternalValidation            EQU        $02                    ; check parameters to internal routines 
  496.                                                             ; These levels tell how to validate types.  Choose one. 
  497. gxTypeValidation                EQU        $00                    ; check types of objects 
  498. gxStructureValidation            EQU        $10                    ; check fields of private structures 
  499. gxAllObjectValidation            EQU        $20                    ; check every object over every call 
  500.                                                             ; These levels tell how to validate memory manager blocks.  Choose any combination. 
  501. gxNoMemoryManagerValidation        EQU        $0000
  502. gxApBlockValidation                EQU        $0100                ; check the relevant block structures after each memory mgr. call 
  503. gxFontBlockValidation            EQU        $0200                ; check the system gxHeap as well 
  504. gxApHeapValidation                EQU        $0400                ; check the memory manager's gxHeap after every mem. call 
  505. gxFontHeapValidation            EQU        $0800                ; check the system gxHeap as well 
  506. gxCheckApHeapValidation            EQU        $1000                ; check the memory manager's gxHeap if checking routine parameters 
  507. gxCheckFontHeapValidation        EQU        $2000                ; check the system gxHeap as well 
  508. ; typedef long                             gxValidationLevel
  509.  
  510.  
  511. no_draw_error                    EQU        0                    ; gxShape type errors 
  512. shape_emptyType                    EQU        1
  513. shape_inverse_fullType            EQU        2
  514. rectangle_zero_width            EQU        3
  515. rectangle_zero_height            EQU        4
  516. polygon_empty                    EQU        5
  517. path_empty                        EQU        6
  518. bitmap_zero_width                EQU        7
  519. bitmap_zero_height                EQU        8
  520. text_empty                        EQU        9
  521. glyph_empty                        EQU        10
  522. layout_empty                    EQU        11
  523. picture_empty                    EQU        12                    ; general gxShape errors 
  524. shape_no_fill                    EQU        13
  525. shape_no_enclosed_area            EQU        14
  526. shape_no_enclosed_pixels        EQU        15
  527. shape_very_small                EQU        16
  528. shape_very_large                EQU        17
  529. shape_contours_cancel            EQU        18                    ; gxStyle errors 
  530. pen_too_small                    EQU        19
  531. text_size_too_small                EQU        20
  532. dash_empty                        EQU        21
  533. start_cap_empty                    EQU        22
  534. pattern_empty                    EQU        23
  535. textFace_empty                    EQU        24
  536. shape_primitive_empty            EQU        25
  537. shape_primitive_very_small        EQU        26                    ; gxInk errors 
  538. transfer_equals_noMode            EQU        27
  539. transfer_matrix_ignores_source    EQU        28
  540. transfer_matrix_ignores_device    EQU        29
  541. transfer_source_reject            EQU        30
  542. transfer_mode_ineffective        EQU        31
  543. colorSet_no_entries                EQU        32
  544. bitmap_colorSet_one_entry        EQU        33                    ; gxTransform errors 
  545. transform_scale_too_small        EQU        34
  546. transform_map_too_large            EQU        35
  547. transform_move_too_large        EQU        36
  548. transform_scale_too_large        EQU        37
  549. transform_rotate_too_large        EQU        38
  550. transform_perspective_too_large    EQU        39
  551. transform_skew_too_large        EQU        40
  552. transform_clip_no_intersection    EQU        41
  553. transform_clip_empty            EQU        42
  554. transform_no_viewPorts            EQU        43                    ; gxViewPort errors 
  555. viewPort_disposed                EQU        44
  556. viewPort_clip_empty                EQU        45
  557. viewPort_clip_no_intersection    EQU        46
  558. viewPort_scale_too_small        EQU        47
  559. viewPort_map_too_large            EQU        48
  560. viewPort_move_too_large            EQU        49
  561. viewPort_scale_too_large        EQU        50
  562. viewPort_rotate_too_large        EQU        51
  563. viewPort_perspective_too_large    EQU        52
  564. viewPort_skew_too_large            EQU        53
  565. viewPort_viewGroup_offscreen    EQU        54                    ; gxViewDevice errors 
  566. viewDevice_clip_no_intersection    EQU        55
  567. viewDevice_scale_too_small        EQU        56
  568. viewDevice_map_too_large        EQU        57
  569. viewDevice_move_too_large        EQU        58
  570. viewDevice_scale_too_large        EQU        59
  571. viewDevice_rotate_too_large        EQU        60
  572. viewDevice_perspective_too_large EQU    61
  573. viewDevice_skew_too_large        EQU        62
  574. ; typedef long                             gxDrawError
  575.  
  576.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  577. ;
  578. ; extern gxDrawError GXGetShapeDrawError(gxShape source)
  579. ;
  580.     IF ¨ GENERATINGCFM THEN
  581.         Macro
  582.         _GXGetShapeDrawError
  583.             move.w              #$01EE,D0
  584.             dc.w                $A832
  585.         EndM
  586.     ELSE
  587.         IMPORT_CFM_FUNCTION GXGetShapeDrawError
  588.     ENDIF
  589.  
  590. ;
  591. ; extern void GXValidateAll(void )
  592. ;
  593.     IF ¨ GENERATINGCFM THEN
  594.         Macro
  595.         _GXValidateAll
  596.             move.w              #$01EF,D0
  597.             dc.w                $A832
  598.         EndM
  599.     ELSE
  600.         IMPORT_CFM_FUNCTION GXValidateAll
  601.     ENDIF
  602.  
  603. ;
  604. ; extern void GXValidateColorSet(gxColorSet target)
  605. ;
  606.     IF ¨ GENERATINGCFM THEN
  607.         Macro
  608.         _GXValidateColorSet
  609.             move.w              #$01F0,D0
  610.             dc.w                $A832
  611.         EndM
  612.     ELSE
  613.         IMPORT_CFM_FUNCTION GXValidateColorSet
  614.     ENDIF
  615.  
  616. ;
  617. ; extern void GXValidateColorProfile(gxColorProfile target)
  618. ;
  619.     IF ¨ GENERATINGCFM THEN
  620.         Macro
  621.         _GXValidateColorProfile
  622.             move.w              #$01F1,D0
  623.             dc.w                $A832
  624.         EndM
  625.     ELSE
  626.         IMPORT_CFM_FUNCTION GXValidateColorProfile
  627.     ENDIF
  628.  
  629. ;
  630. ; extern void GXValidateGraphicsClient(gxGraphicsClient target)
  631. ;
  632.     IF ¨ GENERATINGCFM THEN
  633.         Macro
  634.         _GXValidateGraphicsClient
  635.             move.w              #$01F2,D0
  636.             dc.w                $A832
  637.         EndM
  638.     ELSE
  639.         IMPORT_CFM_FUNCTION GXValidateGraphicsClient
  640.     ENDIF
  641.  
  642. ;
  643. ; extern void GXValidateInk(gxInk target)
  644. ;
  645.     IF ¨ GENERATINGCFM THEN
  646.         Macro
  647.         _GXValidateInk
  648.             move.w              #$01F3,D0
  649.             dc.w                $A832
  650.         EndM
  651.     ELSE
  652.         IMPORT_CFM_FUNCTION GXValidateInk
  653.     ENDIF
  654.  
  655. ;
  656. ; extern void GXValidateShape(gxShape target)
  657. ;
  658.     IF ¨ GENERATINGCFM THEN
  659.         Macro
  660.         _GXValidateShape
  661.             move.w              #$01F4,D0
  662.             dc.w                $A832
  663.         EndM
  664.     ELSE
  665.         IMPORT_CFM_FUNCTION GXValidateShape
  666.     ENDIF
  667.  
  668. ;
  669. ; extern void GXValidateStyle(gxStyle target)
  670. ;
  671.     IF ¨ GENERATINGCFM THEN
  672.         Macro
  673.         _GXValidateStyle
  674.             move.w              #$01F5,D0
  675.             dc.w                $A832
  676.         EndM
  677.     ELSE
  678.         IMPORT_CFM_FUNCTION GXValidateStyle
  679.     ENDIF
  680.  
  681. ;
  682. ; extern void GXValidateTag(gxTag target)
  683. ;
  684.     IF ¨ GENERATINGCFM THEN
  685.         Macro
  686.         _GXValidateTag
  687.             move.w              #$01F6,D0
  688.             dc.w                $A832
  689.         EndM
  690.     ELSE
  691.         IMPORT_CFM_FUNCTION GXValidateTag
  692.     ENDIF
  693.  
  694. ;
  695. ; extern void GXValidateTransform(gxTransform target)
  696. ;
  697.     IF ¨ GENERATINGCFM THEN
  698.         Macro
  699.         _GXValidateTransform
  700.             move.w              #$01F7,D0
  701.             dc.w                $A832
  702.         EndM
  703.     ELSE
  704.         IMPORT_CFM_FUNCTION GXValidateTransform
  705.     ENDIF
  706.  
  707. ;
  708. ; extern void GXValidateViewDevice(gxViewDevice target)
  709. ;
  710.     IF ¨ GENERATINGCFM THEN
  711.         Macro
  712.         _GXValidateViewDevice
  713.             move.w              #$01F8,D0
  714.             dc.w                $A832
  715.         EndM
  716.     ELSE
  717.         IMPORT_CFM_FUNCTION GXValidateViewDevice
  718.     ENDIF
  719.  
  720. ;
  721. ; extern void GXValidateViewPort(gxViewPort target)
  722. ;
  723.     IF ¨ GENERATINGCFM THEN
  724.         Macro
  725.         _GXValidateViewPort
  726.             move.w              #$01F9,D0
  727.             dc.w                $A832
  728.         EndM
  729.     ELSE
  730.         IMPORT_CFM_FUNCTION GXValidateViewPort
  731.     ENDIF
  732.  
  733. ;
  734. ; extern void GXValidateViewGroup(gxViewGroup target)
  735. ;
  736.     IF ¨ GENERATINGCFM THEN
  737.         Macro
  738.         _GXValidateViewGroup
  739.             move.w              #$01FA,D0
  740.             dc.w                $A832
  741.         EndM
  742.     ELSE
  743.         IMPORT_CFM_FUNCTION GXValidateViewGroup
  744.     ENDIF
  745.  
  746. ;
  747. ; extern gxValidationLevel GXGetValidation(void )
  748. ;
  749.     IF ¨ GENERATINGCFM THEN
  750.         Macro
  751.         _GXGetValidation
  752.             move.w              #$01FB,D0
  753.             dc.w                $A832
  754.         EndM
  755.     ELSE
  756.         IMPORT_CFM_FUNCTION GXGetValidation
  757.     ENDIF
  758.  
  759. ;
  760. ; extern void GXSetValidation(gxValidationLevel level)
  761. ;
  762.     IF ¨ GENERATINGCFM THEN
  763.         Macro
  764.         _GXSetValidation
  765.             move.w              #$01FC,D0
  766.             dc.w                $A832
  767.         EndM
  768.     ELSE
  769.         IMPORT_CFM_FUNCTION GXSetValidation
  770.     ENDIF
  771.  
  772. ;
  773. ; extern long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
  774. ;
  775.     IF ¨ GENERATINGCFM THEN
  776.         Macro
  777.         _GXGetValidationError
  778.             move.w              #$01FD,D0
  779.             dc.w                $A832
  780.         EndM
  781.     ELSE
  782.         IMPORT_CFM_FUNCTION GXGetValidationError
  783.     ENDIF
  784.  
  785.     ENDIF
  786.     ENDIF ; __GXERRORS__ 
  787.  
  788.